package top.zywork.dos;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2020-10-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_school_order")
public class SchoolOrderDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("id")
    private String id;

    /**
     * 下单用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 接单人ID
     */
    @TableField("order_user_id")
    private Long orderUserId;

    /**
     * 学校ID
     */
    @TableField("school_id")
    private Long schoolId;

    /**
     * 包裹大小
     */
    @TableField("parcel")
    private String parcel;

    /**
     * 取件点
     */
    @TableField("place")
    private String place;

    /**
     * 订单金额
     */
    @TableField("total_amount")
    private BigDecimal totalAmount;

    /**
     * 实付金额
     */
    @TableField("pay_amount")
    private BigDecimal payAmount;

    /**
     * 优惠金额
     */
    @TableField("discount_amount")
    private BigDecimal discountAmount;

    /**
     * 优惠券ID
     */
    @TableField("coupons_id")
    private String couponsId;

    /**
     * 备注
     */
    @TableField("notes")
    private String notes;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 送达时间
     */
    @TableField("delivery")
    private String delivery;

    /**
     * 订单状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 支付状态
     */
    @TableField("pay_status")
    private Integer payStatus;

    /**
     * 是否激活
     */
    @TableField("is_active")
    private Integer isActive;

    /**
     * 超时时间
     */
    @TableField("timeouts")
    private Date timeouts;

    /**
     * 下单时间
     */
    @TableField("place_order_time")
    private Date placeOrderTime;

    /**
     * 骑手佣金
     */
    @TableField("commission")
    private BigDecimal commission;

    /**
     * 交易编号
     */
    @TableField("transaction_no")
    private String transactionNo;

}
